-- GENERATED SPELL FOR [Mechagnome Battletank] --


function spell0_34164(pUnit, Event) --@Flame Cannon,n/a--
pUnit:FullCastSpellOnTarget(64692,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34164', 1000, 1)
end

function spell1_34164(pUnit, Event) --@Jump Attack,n/a--
pUnit:FullCastSpellOnTarget(64953,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_34164', 597, 1)
end

function Sorts_34164(pUnit, Event)
local choix_sorts_34164 = math.random(0, 1)
if choix_sorts_34164 == 0 then
pUnit:RegisterEvent('spell0_34164', 1, 1)
end
if choix_sorts_34164 == 1 then
pUnit:RegisterEvent('spell1_34164', 1, 1)
end
end

function mob34164_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_34164', math.random(1500, 3000), 1)
end

function mob34164_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34164_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob34164_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(34164, 1, 'mob34164_Action')
RegisterUnitEvent(34164, 2, 'mob34164_Leave')
RegisterUnitEvent(34164, 3, 'mob34164_Kill')
RegisterUnitEvent(34164, 4, 'mob34164_Die')
